@extends('layouts')

@section('title', '页面标题')

@section('content')
    <section class="vbox">
    <section class=" scrollable padder-lg" id="bjax-target">
        <a href="#" class="pull-right text-muted m-t-lg" data-toggle="class:fa-spin"><i
                    class="icon-refresh i-lg  inline" id="refresh"></i></a>
        <h2 class="font-thin m-b">File <span class="musicbar inline m-l-sm" style="width:20px;height:20px">
                                 <span class="bar1 a1 bg-primary lter"></span>
                                 <span class="bar2 a2 bg-info lt"></span>
                                 <span class="bar3 a3 bg-success"></span>
                                 <span class="bar4 a4 bg-warning dk"></span>
                                 <span class="bar5 a5 bg-danger dker"></span>
                               </span>
            <span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
            <a class="success" href="/files">全部</a>
            <span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
            <a class="success" href="/files?type=video">视频</a>
            <span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
            <a class="success" href="/files?type=music">音乐</a>
            <span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
            <a class="success" href="/files?type=bt">bt</a>
        </h2>
        <div class="row">
            <div class="col-sm-12">
                <section class="panel panel-default">
                    <header class="panel-heading">
                        <button id="update_file" class="btn btn-s-md btn-info btn-rounded btn-sm pull-right ">更新</button>
                        File
                    </header>
                    <table class="table table-striped m-b-none">
                        <thead>
                        <tr>
                            <th>files_id</th>
                            <th>name</th>
                            <th>类型</th>
                            <th>file_name</th>
                            <th>size</th>
                            <th>下载</th>
                            <th>创建时间</th>
                            <th style="width:70px;"></th>
                        </tr>
                        </thead>
                        <tbody>
                        @foreach($files as $file)
                        <tr>
                            <td>{{$file->id}}</td>
                            <td>{{$file->name}}</td>
                            <td>{{$file->type}}</td>
                            <td>{{$file->file_name}}</td>
                            <td>{{$file->size}}</td>
                            <td><a href="{{$file->url}}">获取</a></td>
                            <td>{{$file->created_at}}</td>
                            <td class="text-right">
                                <div class="btn-group">
                                    <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i
                                                class="fa fa-pencil"></i></a>
                                    <ul class="dropdown-menu pull-right">
                                        <li><a href="#">Action</a></li>
                                        <li><a href="#">Another action</a></li>
                                        <li><a href="#">Something else here</a></li>
                                        <li class="divider"></li>
                                        <li><a href="#">Separated link</a></li>
                                    </ul>
                                </div>
                            </td>
                        </tr>
                            @endforeach
                        </tbody>
                    </table>
                    {!! $files->render() !!}
                </section>
            </div>

        </div>
    </section>
    </section>

@endsection
@section('script')
    <script>

    </script>
@endsection
